package vip.source.pattern.part03.improve;

import org.junit.jupiter.api.Test;
import vip.source.pattern.part03.improve.build.Builder;

/** @Description: 建造者模式测试 @Author: zy */
public class UnitTest {
    @Test
    public void test_Builder() {
        Builder builder = new Builder();

        // 豪华欧式
        System.out.println(builder.levelOne(132.52D).getDetail());

        // 轻奢田园
        System.out.println(builder.levelTwo(98.25D).getDetail());

        // 现代简约
        System.out.println(builder.levelThree(85.43D).getDetail());
    }
}
